<%= include ic/admin-header.html %>

<div class="am-cf admin-main">
  <%= include ic/admin-sidebar.html %>

  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">系统文档</strong> / <small>article</small></div>
    </div>

    <div class="am-g">
      <div class="am-u-sm-12">
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr>
                <th class="table-cacheName">标题</th><th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
            <% for(var i=0;i<results.length;i++){ %>
                <% if(i<12){ %>
                <tr>
                  <td><a href="/admin/config/article/detail?id=<%= results[i].id %>"><%= results[i].get('name') %></a></td>
                  <td>
                    <div class="am-btn-toolbar">
                      <div class="am-btn-group am-btn-group-xs">
                        <div class="am-btn am-btn-default am-btn-xs am-text-secondary" onclick="gotoUrl('/admin/config/article/detail?id=<%= results[i].id %>')"><span class="am-icon-pencil-square-o"></span> 编辑</div>
                      </div>
                    </div>
                  </td>
                </tr>
                <% }else{ %>
                <tr>
                  <td colspan="2">&nbsp;</td>
                </tr>
                <% } %>
            <% } %>
          </tbody>
        </table>
		<hr />
        <p></p>
      </div>

    </div>
  </div>
  <!-- content end -->
</div>
<a class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>
<style>
</style>
<%= include ic/admin-footer.html %>
<script type="text/javascript">
var checked=false;
$(function() {
	$("#collapse-setting").addClass("am-in");
});
</script>
